import { Length, MinLength } from 'class-validator';

export class RegisterVo {
  @Length(2, 20, {
    message() {
      return '用户名长度必须为 2 到 20';
    },
  })
  username: string;

  @MinLength(6, {
    message() {
      return '密码最少为6位';
    },
  })
  password: string;
}
